package com.blb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.blb.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaoxiong
 * @since 2020-05-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_dept")
public class Dept extends BaseEntity {

    private static final long serialVersionUID=1L;



    /**
     * 员工编号
     */
    @TableField(exist = false)
    private String userId;

    /**
     * 父id
     */
    private String pid;

    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 部门经理
     */
    private String deptManger;

    /**
     * 联系电话
     */
    private String deptTel;

    /**
     * 固定电话
     */
    private String deptPhone;

    /**
     * 邮箱
     */
    private String deptEmail;

    /**
     * 部门职位(外键:t_post(post_id))
     */
    private String postId;

    /**
     * 部门简介
     */
    private String deptRemark;

    /**
     * 部门职位
     */
    @TableField(exist = false)
    private String postName="";

}
